using System;
using System.Collections;
using System.Collections.Generic;
using System.Reflection;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using DotNetNuke.Common;
using DotNetNuke.Common.Utilities;
using DotNetNuke.Entities.Modules;
using DotNetNuke.Entities.Modules.Actions;
using DotNetNuke.Framework;
using DotNetNuke.Services.Exceptions;
using DotNetNuke.Services.Localization;
using System.Data;

namespace ITCrossing
{
	public partial class itcMetaPost_ManageImages : PortalModuleBase
    {

        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
			Load +=new EventHandler(Page_Load);
        }

        #region IActionable Members

        public DotNetNuke.Entities.Modules.Actions.ModuleActionCollection ModuleActions
        {
            get
            {
				//create a new action to add an item, this will be added to the controls
				//dropdown menu
				ModuleActionCollection actions = new ModuleActionCollection();
				actions.Add(GetNextActionID(), Localization.GetString(ModuleActionType.EditContent, this.LocalResourceFile),
					ModuleActionType.EditContent, "", "", Globals.NavigateURL("Settings_PE"), false, DotNetNuke.Security.SecurityAccessLevel.Edit,
					 true, false);
         
                return actions;
            }

        }

        #endregion

        protected void Page_Load(object sender, EventArgs e)
		{
			if (AJAX.IsInstalled())
            {
                AJAX.RegisterScriptManager();
            }
            if (!Page.IsPostBack)
			{

			}

			ContainerControl.Visible = (UserInfo.IsSuperUser) ? true : false;

		}
    }
}